package j01luanma;

import java.io.*;

public class J2jiejue {
    public static void main(String[] args) throws Exception {
        InputStreamReader fs = new InputStreamReader(
                new FileInputStream("_0906/src/j01luanma/anisi.txt"),
                "GBK"
        );
        System.out.println((char) fs.read());
        System.out.println((char) fs.read());
        System.out.println((char) fs.read());
        System.out.println((char) fs.read());
        System.out.println(fs.getEncoding());


        //写入
//        OutputStreamWriter fs = new OutputStreamWriter(
//                new FileOutputStream("_0906/src/j01luanma/anisi.txt",true),
//                "GBK"
//        );
//        fs.write("华蓝");
//        fs.close();


    }
}
